export interface User {
  id: number;
  avatar: string;
  username: string;
  nickname: string;
  password: string;
  createTime: Date;
  updateTime: Date;
  order: string;
  prop: string;
}

export function getInfo(): Promise<R<UserInfo>> {
  return useAPI("/user", {
    method: "GET",
  });
}
